﻿{% extends "forum/base.html" %}
{% load customfilters %}

{% block title %}
DjangoPower论坛
{% endblock %}

{% block js %}
<!-- jQuery library is required, see http://jquery.com/ -->
<script type="text/javascript" src="/site_media/js/wym/jquery/jquery.js"></script>
<!-- WYMeditor main JS file, packed version -->
<script type="text/javascript" src="/site_media/js/wym/wymeditor/jquery.wymeditor.pack.js"></script>

<script type="text/javascript">

/* Here we replace each element with class 'wymeditor'
 * (typically textareas) by a WYMeditor instance.
 * 
 * We could use the 'html' option, to initialize the editor's content.
 * If this option isn't set, the content is retrieved from
 * the element being replaced.
 */

jQuery(function() {
    jQuery('.wymeditor').wymeditor({
        html: '',
        lang: 'zh_cn',
        stylesheet: 'styles.css'
    });
});

</script>
{% endblock %}

{% block content %}
<h2>发表主题</h2>

<form action="." method="post">
    {{ form.as_p }}
    <input class="wymupdate" name="commit" type="submit" value="发表" />
</form>

{% endblock %}